package com.fantasy9.gameserver.message;

import com.fantasy9.gameserver.core.Constants;
import com.fantasy9.gameserver.core.ServerException;
import com.fantasy9.gameserver.player.Player;

/**
 * BaseClientMessage's Byte Buffer doesn't contain the message length field
 * @author Tyrael
 *
 */
public abstract class BaseClientMessage extends BaseMessage {
	
	private Player player;
	

	public void readFromByteBuffer() throws ServerException{
		this.readMessage();
	}
	
	@Override
	public int getType() {
		return Constants.MSG_CLIENT_TO_GS;
	}
	
	public Player getPlayer() {
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}
}
